#ifndef _IN_SDK_AB6012BX_H_
#define _IN_SDK_AB6012BX_H_

#ifdef __cplusplus
"C" {
#endif

typedef enum
{
    E_P2P_MODE_PETOOL = 0,
    E_P2P_MODE_360 ,
    E_P2P_MODE_TY,
    E_P2P_MODE_NUMBER
}E_P2P_MODE;

typedef enum
{
    E_ADV_BROADCAST = 0,//广播
    E_ADV_RSP,          //应答
}E_ADV_MODE;

typedef enum
{
    E_BLUE_STATUS_IDEL = 0,//空闲 || 未连接
    E_BLUE_STATUS_CONNECT, //连接中
}E_BLUE_STATUS;

int lib_ble_main(void);
int JK_SetBlueName(char *name,int len);
int JK_SetBlueUid(char *uid,int len);
int JK_SetBlueRxCb(void (*fun)(char* buff,int len));
int JK_SetBlueStatusCb(void (*fun)(int status));
int gatt_svr_chr_notify(char *data, int len);
int JK_SetP2PMode(E_P2P_MODE mode);
void lib_ble_thread_exit();
void JK_DisconnectBlue(void);
void JK_ble_gap_adv_set(E_ADV_MODE mode,unsigned char *buff,int len);
void JK_CloseBlue(void);

#ifdef __cplusplus
}
#endif

#endif
